package com.example.demo.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author Ethan.An
 * @description: 会员DTO
 * @date 2019/12/314:15 PM
 */
@Data
@ApiModel("会员信息DTO")
public class MemberDTO implements Serializable {


    @ApiModelProperty("会员标识")
    private Long id;

    @ApiModelProperty("会员头像")
    private String avatar;

    @ApiModelProperty("会员名称")
    private String memberNick;

    @ApiModelProperty("会员编码")
    private String memberNumber;

    @ApiModelProperty("会员unionId")
    private String unionId;

    @ApiModelProperty("会员openId")
    private String openId;

    @ApiModelProperty("会员公众号openId")
    private String publicOpenId;

    @ApiModelProperty("会员授权手机号")
    private String phoneNumber;

    @ApiModelProperty("分享的会员编号")
    private String shareMemberNumber;

    @ApiModelProperty("来源")
    private Long sourceId;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @ApiModelProperty("最后一次登录时间")
    private Date lastLoginTime;

    @ApiModelProperty("授权时间")
    private Date authTime;

    @ApiModelProperty("是否观看过用户指南1：是 0：否")
    private Integer guideFlag;

}
